package org.example.springboot.common.config;

import io.swagger.v3.oas.annotations.ExternalDocumentation;
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Contact;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.info.License;
import io.swagger.v3.oas.annotations.servers.Server;
import org.springframework.boot.SpringBootConfiguration;

/**
 * @author Anhui OuYang
 * @version 1.0
 **/
@SpringBootConfiguration
@OpenAPIDefinition(
        // ## API的基本信息，包括标题、版本号、描述、联系人等
        info = @Info(
                title = "功能文档",       // Api接口文档标题（必填）
                description = "",      // Api接口文档描述
                version = "1.0.0",                                   // Api接口版本
                termsOfService = "",             // Api接口的服务条款地址
                contact = @Contact(
                        name = "Fz",                            // 作者名称
                        email = "",                  // 作者邮箱
                        url = ""  // 介绍作者的URL地址
                )
        ),
        externalDocs = @ExternalDocumentation(description = "更多内容请查看该链接", url = "xxx"))
public class SwaggerOpenApiConfig {
}